package com.source.barcodeMachineGrantAndRecovery.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.source.barcodeMachineGrantAndRecovery.VO.BarcodeMachineGrantVO;
import com.source.barcodeMachineGrantAndRecovery.entity.BarcodeMachineGrant;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Feng
 * @since 2021-02-24
 */
public interface BarcodeMachineGrantService extends IService<BarcodeMachineGrant> {

    BarcodeMachineGrantVO find(int id);

    List<BarcodeMachineGrantVO> find();

    Page<BarcodeMachineGrantVO> find(int current, int size);

    List<BarcodeMachineGrantVO> findByBarcodeMachineId(int id);

    Page<BarcodeMachineGrantVO> findByBarcodeMachineId(int id, int current, int size);

    List<BarcodeMachineGrantVO> like(String str);

    Page<BarcodeMachineGrantVO> like(String str, int current, int size);

    boolean remove(String ids);

    String viewQRCode(String barcodeMachineNumber, String id);

    BarcodeMachineGrant findByMachineNumberAndGrantDate(String barcodeMachineNumber, String date);

    BarcodeMachineGrantVO findById(String id);

    List<BarcodeMachineGrantVO> findAll();

    List<BarcodeMachineGrantVO> findByLike(String keyWord);

    List<BarcodeMachineGrantVO> findAllDistinct();

    List<BarcodeMachineGrantVO> findDistinctByLike(String keyWord);
}
